# -*- coding: utf-8 -*-

from odoo import models, fields


class BasicOldPeoplePhysicalIdentificationResult(models.Model):
    _name = 'basic_old_people_physical_identification_result'
    _description = '老年人体质辨识结果表'

    healthCheck = fields.Char(string="体检编号", required=True)
    checkId = fields.Char(string="条码编号", required=True)
    resident_id = fields.Many2one("basic_info", ondelete='set null', string="居民ID", index=True)

    hepzScore = fields.Float(string='平和质评分')
    qixzScore = fields.Float(string='气虚质评分')
    yangxzScore = fields.Float(string='阳虚质评分')
    yinxzScore = fields.Float(string='阴虚质评分')
    tanszScore = fields.Float(string='痰湿质评分')
    shirzScore = fields.Float(string='湿热质评分')
    xueyzScore = fields.Float(string='血瘀质评分')
    qiyzScore = fields.Float(string='气郁质评分')
    tebzScore = fields.Float(string='特秉质评分')

    hepz = fields.Selection([
        ('1', '是'),
        ('2', '基本是'),
        ('3', '否')],
        string="平和质")
    qixz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="气虚质")
    yangxz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="阳虚质")
    yinxz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="阴虚质")
    tansz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="痰湿质")
    shirz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="湿热质")
    xueyz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="血瘀质")
    qiyz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="气郁质")
    tebz = fields.Selection([
        ('1', '是'),
        ('2', '倾向是'),
        ('3', '否')],
        string="特禀质")

    is_delete = fields.Boolean(string="是否删除")

    fl_sprt = fields.Integer(string='精力充沛')
    esy_trd = fields.Integer(string='容易疲乏')
    esy_shrt_brth = fields.Integer(string='容易气短')
    low_voice = fields.Integer(string='声音低沉')
    deprss = fields.Integer(string='情绪低沉')
    anxiety = fields.Integer(string='焦虑不安')
    lonly_lst = fields.Integer(string='孤独失落')
    afr_frghten = fields.Integer(string='害怕或者惊吓')
    ovrwght = fields.Integer(string='身体超重不轻松')
    dry_eyes = fields.Integer(string='眼睛干涩')
    cl_hnds_and_ft = fields.Integer(string='手脚发凉')
    chls_knee = fields.Integer(string='膝部发冷')
    cnt_std_cld = fields.Integer(string='受不了寒冷')
    esy_cld = fields.Integer(string='容易感冒')
    cld_rny_nse = fields.Integer(string='感冒流鼻涕')
    slp_snr = fields.Integer(string='睡眠打鼾')
    allergic = fields.Integer(string='容易过敏')
    urticaria = fields.Integer(string='荨麻疹')
    subcutane_hemohg = fields.Integer(string='皮下出血')
    thare_scrths = fields.Integer(string='出现抓痕')

    dry_lips = fields.Integer(string='口唇干燥')
    pn_sens = fields.Integer(string='疼痛感觉')
    grsy_shy = fields.Integer(string='油腻发亮')
    spkle = fields.Integer(string='斑点')
    skin_eczm = fields.Integer(string='皮肤湿疹')
    mth_prch_tgscrch = fields.Integer(string='口干舌燥')
    btr_tst = fields.Integer(string='口苦异味')
    abdominal_hyptry = fields.Integer(string='腹部肥大')
    uncomfr_eatcld = fields.Integer(string='吃凉不舒服')
    cnt_gridof_stls = fields.Integer(string='大便解不尽')
    dry_stls = fields.Integer(string='大便干燥')
    thck_togu = fields.Integer(string='舌头厚厚')
    sublngl_thckng = fields.Integer(string='舌下增粗')
    prfvid = fields.Integer(string='十分热情')

    createDate = fields.Date(string="建档日期", default=fields.Date.today())
    createUser = fields.Char(string="建档人")
    createUnit = fields.Char(string="建档机构")
    update_time = fields.Date(string="更新时间", default=fields.Date.today())

    resident_signa = fields.Char(string="居民签名")
